package com.ljf.springtest.controller.api.common;

import com.ljf.springtest.bean.User;
import com.ljf.springtest.service.UserLoginService;
import com.ljf.springtest.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * user controller is used to control
 * the user's query,update user message,
 * update password.
 * @version v1.0
 * @author JunfengLiu
 * @since v1.0
 * date：2021-12-17 09:23:12
 */
@RestController
@RequestMapping("/prod-api/api/common/user")
public class UserController {

    @Autowired
    private UserService userService;

    @Autowired
    private UserLoginService userLoginService;

    @GetMapping("/getInfo")
    public User getInfo(@RequestBody String token){
        User userMessage = new User();
        userMessage.setToken(token);
//        userService.getOne(userMessage);
        return userMessage;
    }
}
